Morpheus,
Satan can only act against Israel if God allows it. Thus both accounts put together give the whole story. Satan acts against David, God is given the responsibility for it. This is how they viewed their relationship with God.
In a way, it's not too dissimilar from what some, though not believing in God, nonetheless blame God for earthquakes and disease because if God exists he is allowing these things to occur.